#!/bin/bash

# prepare ssh server
# mkdir -p /var/run/sshd
source $HOME/.bashrc
# cd /root/noVNC && nohup ./utils/launch.sh --listen 7001 --vnc localhost:5900 >novnc.log  2>&1  &

# start up supervisord, all daemons should launched by supervisord.
/usr/bin/supervisord -c /usr/local/bin/supervisord.conf

# 增加websocket接口
cd /usr/lib/websockify && nohup ./websockify.py 6901 localhost:5900 >websockify.log  2>&1  &

# start a shell
tail -f /var/log/dmesg
